package cn.gong.moviekong.ui;

import cn.gong.moviekong.model.Task;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends BaseActivity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		findButtonById(R.id.main_bt_movie).setOnClickListener(this);
		findButtonById(R.id.main_bt_teleplay).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.main_bt_movie:
			startActForNew(new Intent(this, MovieActivity.class));
			break;
		case R.id.main_bt_teleplay:
			break;
		}
	}

	@Override
	public void refresh(Task task) {

	}
}